package ch03.jianDa.dao;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class LoginAction implements Action{
    @Override
    public void execute(HttpServletRequest request, HttpServletResponse response) throws Exception {
        request.setCharacterEncoding("UTF-8");
        response.setContentType("text/html");

        String account = request.getParameter("account");
        String password = request.getParameter("password");

        if(account.equals("15115563896")&&password.equals("123456")){
            request.getRequestDispatcher("action.jsp").forward(request,response);
        }
    }
}
